package apiday01;
/**
 *String trim():
 * 去除当前字符串两边的空白字符
 */
public class TrimDemo {
    public static void main(String[] args) {
        String str = "  hello world    ";
        int len = str.length();
        System.out.println(len);
        System.out.println(str);
        str = str.trim();
        len = str.length();
        System.out.println(len);
        System.out.println(str);

    }
}
